/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author jackey
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.dao;

import java.math.BigDecimal;

import org.springframework.stereotype.Repository;

import com.eyaomall.wxmall.model.po.DiscountRecord;
import com.lycheeframework.core.annotation.NameSpace;
import com.lycheeframework.core.support.DaoSupport;
/**
 * GoodsDao
 * @author pro
 *
 */
@Repository
@NameSpace("discount_record")
public class DiscountRecordDao extends DaoSupport<DiscountRecord>{

	public boolean bargain(Integer discountid, BigDecimal amount) {
		DiscountRecord vo=new DiscountRecord();
		vo.setId(discountid);
		vo.setPrice(amount);
		return super.update("bargain", vo)>0?true:false;
		
	}
	

}
